import request from '@/utils/request'

// 查询任务列表
export const listNote=(query:any)=> {
  return request({
    url: '/task/note/list',
    method: 'get',
    params: query
  })
}

// 查询任务详细
export const getNote=(noteId:any)=> {
  return request({
    url: '/task/note/' + noteId,
    method: 'get'
  })
}

// 新增任务
export const addNote=(data:any)=> {
  return request({
    url: '/task/note',
    method: 'post',
    data: data
  })
}

// 修改任务
export const updateNote=(data:any)=> {
  return request({
    url: '/task/note',
    method: 'put',
    data: data
  })
}

// 删除任务
export const delNote=(noteId:any)=> {
  return request({
    url: '/task/note/' + noteId,
    method: 'delete'
  })
}